import requests

url = 'https://httpbin.ceshiren.com/cookies'
headers = {'User-Agent':'python-requests/2.31.0'}
cookies = dict(cookies_are='working2')
r = requests.get(url,headers=headers,cookies=cookies)
print(r.request.headers)